<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Adv extends Model
{
    use HasFactory;

    public $fillable = [
        'type',
        'lang',
        'image'
    ];

    public function nav()
    {
        return $this->belongsTo(Nav::class, 'type', 'id');
    }
}
